<div>
    <ol class="breadcrumb" >
        <li> <i class="fa fa-anchor"></i>
            &nbsp;统计管理
        </li>
        <li>账单统计</li>
        <li style="float: right"><a  href="javascript:history.go(-1);">返回</a></li>
    </ol>
    <div class="panel">
        <div class="panel-heading" >
            <i class="fa fa-list"></i>
            &nbsp;&nbsp;统计信息表<strong>【{$city}】</strong>
        </div>
        <form class="search-form" action={:U("Statistics/bill_area")} method="get">
            <div class="panel-body search-panel-body retract"  >
                <div class="col-xs-3 search-col">
                    <div class="input-group">
                        <span class="input-group-addon">按月选择</span>
                        <input type="text" class="form-control  form_month1" placeholder="点击选择" name="month" value="{$_GET['month']}"  data-date-format="yyyy-mm" data-link-format="yyyy-mm">
                    </div>
                </div>
                <div class="col-xs-6 search-col retract">
                    <div class="input-group">
                        <input type="hidden" name="code" value="{$_GET['code']}"/>
                        <span class="input-group-addon">时间段</span>
                        <input type="text" class="form-control required form_month" placeholder="点击选择" name="start_time" value="{$_GET['start_time']}"  data-date-format="yyyy-mm-dd" data-link-format="yyyy-mm-dd">
                        <span class="input-group-addon">~~</span>
                        <input type="text" class="form-control required form_month" placeholder="点击选择" value="{$_GET['end_time']}" name="end_time"  data-date-format="yyyy-mm-dd" data-link-format="yyyy-mm-dd">
                    </div>
                </div>
                <div class="col-xs-2 search-col">
                    <button  type="submit" class="btn btn-warning">
                        <i class="fa fa-search"></i>
                        &nbsp;搜索
                    </button>
                </div>
            </div>
        </form>
    </div>
    <table  class="table table-bordered table-striped table-mcit" >
        <thead>
        <tr>
            <th>
                <button class='btn btn-block btn-mcit'>记录时间</button>
            </th>
            <th>
                <button class='btn btn-block btn-mcit'>账单总数</button>
            </th>
            <th>
                <button class='btn btn-block btn-mcit'>总电量</button>
            </th>
            <th>
                <button class='btn btn-block btn-mcit'>碳排放</button>
            </th>
            <th>
                <button class='btn btn-block btn-mcit'>总时长</button>
            </th>
            <th>
                <button class='btn btn-block btn-mcit'>总金额</button>
            </th>
        </tr>
        </thead>
        <tbody id="DataTableContent">
        <empty name="billcity">
            <td colspan="99" style="text-align:center" class="danger"> <strong><i class="fa fa-meh-o"></i>
                &nbsp;&nbsp;当前条件下没有数据</strong>
            </td>
            <else />
            <volist name="billcity" id="data">
                <tr align="center">
                    <td>{$data.currentTime}</td>
                    <td>{$data.total}</td>
                    <td>{$data.electricity}</td>
                    <td><if condition="$data.carbon neq null">{$data.carbon}<else />0</if></td>
                    <td>{$data.charge_time}</td>
                    <td>{$data.amount}</td>
                </tr>
            </volist>
        </empty>
        <tr>
            <td colspan="99" style="text-align:center">
                <ul class="pagination">{$pageView}</ul>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</div>
<import type='css' file="css.datetimepicker" />
<import file="js.bootstrap-datetimepicker#min" />
<import file="js.bootstrap-datetimepicker#zh-CN" />
<import file="js.maskedinput" />
<script type="text/javascript">
    $(document).ready(function () {
        $(".form_month").datetimepicker({
            language: 'zh-CN',
            autoclose: true,
            startView:'month',
            minView: 'month',
            todayBtn: true,
            viewSelect: 'year',
            pickerPosition: "bottom-left"
        });

        $(".form_month1").datetimepicker({
            language: 'zh-CN',
            autoclose: true,
            startView:'year',
            minView: 'year',
            todayBtn: false,
            viewSelect: 'year',
            pickerPosition: "bottom-left"
        });
    });
</script>